<template>
  <div class="">
    <input type="text" />
    <button>添加</button>
    <hr />

    <!-- <booklist :list="list" /> -->
    <table border="1">
      <tr>
        <th>书名</th>
        <th>价格</th>
      </tr>
      <!-- <tr>
        <td></td>
      </tr> -->
      <bookitem v-for="(item, index) in list" :key="index" :item="item" />
    </table>
  </div>
</template>

<script>
import booklist from "../components/Booklist";
import bookitem from "../components/Bookitem";
export default {
  data() {
    return {
      list: [
        {
          id: 1,
          title: "vue从入门到放弃",
          price: 100,
        },
        {
          id: 2,
          title: "vue从入门到放弃2",
          price: 200,
        },
        {
          id: 3,
          title: "vue从入门到放弃3",
          price: 300,
        },
      ],
    };
  },
  mounted() {},
  methods: {},
  components: {
    booklist,
    bookitem,
  },
};
</script>

<style lang="scss"></style>
